/* Notion风格的Markdown主题 */
.markdown-theme-notion {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, 'Apple Color Emoji', Arial, sans-serif;
  line-height: 1.5;
  color: rgb(55, 53, 47);
  background-color: #fff;
  padding: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.markdown-theme-notion h1,
.markdown-theme-notion h2,
.markdown-theme-notion h3,
.markdown-theme-notion h4,
.markdown-theme-notion h5,
.markdown-theme-notion h6 {
  font-weight: 600;
  margin-top: 1.4em;
  margin-bottom: 0.5em;
}

.markdown-theme-notion h1 {
  font-size: 2.1em;
  line-height: 1.2;
  margin-top: 0.6em;
  margin-bottom: 0.6em;
  color: rgb(55, 53, 47);
}

.markdown-theme-notion h2 {
  font-size: 1.8em;
  line-height: 1.3;
  color: rgb(55, 53, 47);
}

.markdown-theme-notion h3 {
  font-size: 1.5em;
  color: rgb(55, 53, 47);
}

.markdown-theme-notion h4 {
  font-size: 1.25em;
  color: rgb(55, 53, 47);
}

.markdown-theme-notion p {
  margin-bottom: 1em;
  font-size: 1em;
  color: rgb(55, 53, 47);
}

.markdown-theme-notion a {
  color: rgb(46, 170, 220);
  text-decoration: none;
  border-bottom: 1px solid rgba(46, 170, 220, 0.4);
}

.markdown-theme-notion a:hover {
  border-bottom: 1px solid rgb(46, 170, 220);
}

.markdown-theme-notion blockquote {
  border-left: 3px solid rgba(55, 53, 47, 0.16);
  padding-left: 14px;
  margin-left: 0;
  color: rgba(55, 53, 47, 0.6);
}

.markdown-theme-notion code {
  font-family: SFMono-Regular, Menlo, Consolas, 'PT Mono', 'Liberation Mono', Courier, monospace;
  background-color: rgba(135, 131, 120, 0.15);
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 0.9em;
  color: rgb(55, 53, 47);
}

.markdown-theme-notion pre {
  background-color: rgb(247, 246, 243);
  padding: 16px;
  border-radius: 3px;
  overflow-x: auto;
  margin: 1em 0;
}

.markdown-theme-notion pre code {
  background-color: transparent;
  padding: 0;
}

.markdown-theme-notion img {
  max-width: 100%;
  margin: 1em auto;
  display: block;
  border-radius: 3px;
}

.markdown-theme-notion hr {
  border: none;
  border-top: 1px solid rgba(55, 53, 47, 0.09);
  margin: 2em 0;
}

.markdown-theme-notion ul,
.markdown-theme-notion ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
  color: rgb(55, 53, 47);
}

.markdown-theme-notion li {
  margin-bottom: 0.5em;
}

.markdown-theme-notion table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
  border: 1px solid rgba(55, 53, 47, 0.16);
  border-radius: 3px;
  overflow: hidden;
}

.markdown-theme-notion table th,
.markdown-theme-notion table td {
  border: 1px solid rgba(55, 53, 47, 0.16);
  padding: 8px 12px;
  text-align: left;
}

.markdown-theme-notion table th {
  background-color: rgba(247, 246, 243, 0.8);
  font-weight: 600;
}

.markdown-theme-notion table tr:nth-child(even) {
  background-color: rgba(247, 246, 243, 0.3);
}

/* 暗色模式 */
.dark-mode .markdown-theme-notion {
  color: rgba(255, 255, 255, 0.9);
  background-color: #191919;
}

.dark-mode .markdown-theme-notion h1,
.dark-mode .markdown-theme-notion h2,
.dark-mode .markdown-theme-notion h3,
.dark-mode .markdown-theme-notion h4,
.dark-mode .markdown-theme-notion h5,
.dark-mode .markdown-theme-notion h6,
.dark-mode .markdown-theme-notion p,
.dark-mode .markdown-theme-notion ul,
.dark-mode .markdown-theme-notion ol {
  color: rgba(255, 255, 255, 0.9);
}

.dark-mode .markdown-theme-notion a {
  color: rgb(35, 131, 226);
  border-bottom: 1px solid rgba(35, 131, 226, 0.4);
}

.dark-mode .markdown-theme-notion a:hover {
  border-bottom: 1px solid rgb(35, 131, 226);
}

.dark-mode .markdown-theme-notion blockquote {
  border-left: 3px solid rgba(255, 255, 255, 0.21);
  color: rgba(255, 255, 255, 0.6);
}

.dark-mode .markdown-theme-notion code {
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
}

.dark-mode .markdown-theme-notion pre {
  background-color: rgba(255, 255, 255, 0.05);
}

.dark-mode .markdown-theme-notion hr {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dark-mode .markdown-theme-notion table {
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dark-mode .markdown-theme-notion table th,
.dark-mode .markdown-theme-notion table td {
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.dark-mode .markdown-theme-notion table th {
  background-color: rgba(255, 255, 255, 0.08);
}

.dark-mode .markdown-theme-notion table tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.04);
} 